package com.hrs.enity.ro;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author 摆渡人
 * @description
 * @date 2023/1/13 0:14
 */
@Data
public class PositionAddRo {

    @ApiModelProperty("岗位名称")
    @Length(min = 1, max = 50, message = "请输入正确的岗位名称(1-50个字符)")
    @NotNull(message = "请输入正确的岗位名称(1-50个字符)")
    private String name;

    @ApiModelProperty("上级岗位id (可选)")
    private Long parentId;
}
